package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料对象 ingre
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Data
@ApiModel(value = "物料对象", description = "物料对象")
public class Ingre
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty(value = "物料编号")
    private String ingreNo;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty(value = "物料名称")
    private String ingreName;

    /** 物料类型 */
    @Excel(name = "物料类型")
    @ApiModelProperty(value = "物料类型")
    private Integer typeId;

    /** 投料类型0自动,1手动 */
    @Excel(name = "投料类型0自动,1手动")
    @ApiModelProperty(value = "投料类型0自动,1手动")
    private Integer dosingType;

    /** 整包包装重量 */
    @Excel(name = "整包包装重量")
    @ApiModelProperty(value = "整包包装重量")
    private BigDecimal packWght;

    /** 主替换物料 */
    @Excel(name = "主替换物料")
    @ApiModelProperty(value = "主替换物料")
    private String replacePk;
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    /** 物料备料危险性提示类型 */
    @Excel(name = "物料备料危险性提示类型")
    @ApiModelProperty(value = "物料备料危险性提示类型")
    private Long feedRemarkId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "物料分类")
    private String categoryCode;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIngreNo(String ingreNo) 
    {
        this.ingreNo = ingreNo;
    }

    public String getIngreNo() 
    {
        return ingreNo;
    }
    public void setIngreName(String ingreName) 
    {
        this.ingreName = ingreName;
    }

    public String getIngreName() 
    {
        return ingreName;
    }
    public void setTypeId(Integer typeId) 
    {
        this.typeId = typeId;
    }

    public Integer getTypeId() 
    {
        return typeId;
    }
    public void setDosingType(Integer dosingType) 
    {
        this.dosingType = dosingType;
    }

    public Integer getDosingType() 
    {
        return dosingType;
    }
    public void setPackWght(BigDecimal packWght) 
    {
        this.packWght = packWght;
    }

    public BigDecimal getPackWght() 
    {
        return packWght;
    }
    public void setReplacePk(String replacePk) 
    {
        this.replacePk = replacePk;
    }

    public String getReplacePk() 
    {
        return replacePk;
    }
    public void setFeedRemarkId(Long feedRemarkId) 
    {
        this.feedRemarkId = feedRemarkId;
    }

    public Long getFeedRemarkId() 
    {
        return feedRemarkId;
    }
    public void setCategoryCode(String categoryCode) 
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode() 
    {
        return categoryCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ingreNo", getIngreNo())
            .append("ingreName", getIngreName())
            .append("typeId", getTypeId())
            .append("dosingType", getDosingType())
            .append("packWght", getPackWght())
            .append("replacePk", getReplacePk())
            .append("feedRemarkId", getFeedRemarkId())
            .append("remark", getRemark())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("categoryCode", getCategoryCode())
            .toString();
    }
}
